<%@ page import="core.*" %>
<%@ include file='header.tpl.jsp'%>

<div class="messagebox">
	<h1>+Quiz System Message</h1>
	<div class="content">
		<%=request.getAttribute("message")%>
	</div>
	<%if(request.getAttribute("redirect_url") != null){%>
		<%if(request.getAttribute("redirect_url").equals("confirm")){%>
	<a href="<%=request.getAttribute("request_url")%>&confirm=true">[Ok, just go on!]</a>
	<a href="javascript:history.back()">[No, please cancel it.]</a>
		<%}else{%>
	<a href="<%=request.getAttribute("redirect_url")%>" class="redirect">If your browser redirect you nowhere, just click here.</a>
		<%}%>
	<%}%>
</div>
<%if(request.getAttribute("redirect_url") != null && !request.getAttribute("redirect_url").equals("confirm")){%>
<script type="text/javascript">
setTimeout('location.href="<%=request.getAttribute("redirect_url")%>";', <%=Config.messageTimeout%> * 1000);
</script>
<%}%>

<%@ include file='footer.tpl.jsp'%>